<!doctype html>
<meta charset=utf-8>
<title>Set a cookie string defined in the query string using document.cookie API</title>
<script type="text/javascript">
document.cookie = document.location.search.substring(1);
</script>
